<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS引入方式</title>
    <!-- 1.内嵌式：写在<style>标签中,放置在head里 -->
    <style>
        h1,h2{
            color:olive
        }

        .p1{
            color:blueviolet
        }

        #p2{
            font-weight: bold;
            color: palevioletred;
        }
    </style>

    <!-- 2.链接式：使用<link>，在head里写 -->
    <link rel="stylesheet" href="./css/style.css" />

    <!-- 替换站点小图标 -->
    <link rel="short icon" href="./img/box.png" />
</head>
<body>
    <!-- 3.行内式：在元素标签的style属性中设定css样式 -->
    <h1 style="color:lightcoral;">今天星期二</h1>
    <h2>今天有点热</h2>
    <p class="p1">段落标签1</p>
    <p id="p2">段落标签2</p>
</body>
</html>    